package class_object

/**
 * Created by CJJ on 2017/7/18.
 */
fun main(args: Array<String>) {

    var t = Teacher("en teacher")
}


open class People {

    var name: String? = null

    constructor(name: String) {
        this.name = name
        println("people cst")
    }

}


class Teacher : People {

    constructor(name: String) : super(name) {
        print("teacher cst")
    }

}